package com.swak.excel.random;

import java.util.List;

import com.swak.utils.Lists;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 随机读写的数据
 * 
 * @author 618lf
 */
@Getter
@Setter
@Accessors(chain = true)
public class RandomSheet {

	private int index;
	private List<RandomData> datas = Lists.newArrayList();

	/**
	 * 添加要写入的数据
	 * 
	 * @param data
	 * @return
	 */
	public RandomSheet add(RandomData data) {
		datas.add(data);
		return this;
	}

	public static RandomSheet of() {
		return new RandomSheet();
	}
}
